<%@ page pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ taglib prefix="aa" uri="http://ajaxanywhere.sourceforge.net/" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><fmt:message key="flightTransferProtectList.title"/></title> 
<link rel="stylesheet" type="text/css" media="all"	href="<c:url value='/styles/layout.css'/>" />
<script src="<c:url value="/scripts/common.js"/>" language="javascript"></script>
<script src="<c:url value="/scripts/datetime.js"/>" language="javascript"></script>
<script type='text/javascript' src='dwr/engine.js'></script>
<script type='text/javascript' src='dwr/util.js'></script>
<script src="<c:url value='/scripts/ajax/aa.js'/>"></script>
<script type='text/javascript' src='dwr/interface/FlightTransferFoodRemote.js'></script>
<script type='text/javascript' src='dwr/interface/FlightTransferHotelRemote.js'></script>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
function saveTransferHotel(){ 
	ajaxAnywhere.getZonesToReload = function() {
    return "transferHotelZone";
	}
	 ajaxAnywhere.getAJAX('./transfer.html?method=showTips&flightTransferInfoId=<c:out value="${param.flightTransferInfoId}"/>&step=1','transferHotelZone')
     //ajaxAnywhere.submitAJAX(); 
	}
function saveTransferFood(){ 
	ajaxAnywhere.getZonesToReload = function() {
    return "transferFoodZone";
	}
	 ajaxAnywhere.getAJAX('./transfer.html?method=showTips&flightTransferInfoId=<c:out value="${param.flightTransferInfoId}"/>&step=1','transferFoodZone')
     //ajaxAnywhere.submitAJAX(); 
	}
function onSave(){
  document.forms[0].method="post";
  document.forms[0].action="transfer.html?method=saveTips&flightTransferInfoId=<c:out value="${param.flightTransferInfoId}"/>&processinstid=<c:out value="${param.processinstid}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>";
  document.forms[0].submit();
}
function doSubmit(){
  document.forms[0].method="post";
  document.forms[0].action="transfer.html?method=savesubmit&flightTransferInfoId=<c:out value="${param.flightTransferInfoId}"/>&processinstid=<c:out value="${param.processinstid}"/>&workItemId=<c:out value="${param.workItemId}"/>&appId=<c:out value="${param.appId}"/>";
  document.forms[0].submit();
}
</script>
<script>
	var bln = false;
	function changeDiv(eltName,img){ 
  		var el = document.getElementById(eltName);  
		bln = !bln; 
		if(bln){
			img.src="images/menu_ico.gif";
		}else{
			img.src="images/menu_ico_up.gif";			
		}
		display(eltName);

	}
	 
	function display(y){$(y).style.display=($(y).style.display=="none")?"":"none";} 
	function $(s){return document.getElementById(s);}
 
</script>
</head>

<body leftmargin="0" topmargin="0">
<html:form action="transfer" method="post">
<input type=hidden name=id value="<c:out value="${flightTransferInstruction.id}"/>"/>
<input type=hidden name=flightTransferInfoId   value='<c:out value="${param.flightTransferInfoId}"/>'>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="44" class="home-content-title"><img src="images/home_ico_listTitle.gif" width="22" height="20" align="absmiddle">中转航班保障指示</td>
  </tr>
    <tr id="messageShowTrId" style="display:none;">
	<td valign="top" class="black12">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
	<tr>
	<td class="arror_bg_s">
	<span class="arror_title_s"> 
        保存信息成功!<br/>
     </span>
    </td>
    </tr>
    </table>
	</td>
	</tr>
	<logic:messagesPresent>
		<tr id="messagesPresentTrId" style="display:;">
			<td valign="top" class="black12" height="20">
				<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
					<tr>
						<td class="arror_bg">
							<span class="arror_title">
						     您的操作存在如下错误：<br></span>
						     <html:errors/>
					    </td>
				    </tr>
			    </table>
			</td>
		</tr>
   </logic:messagesPresent>
  <tr>
    <td valign="top"> 
      <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td class="home-table-topline"> </td>
        </tr>
        <tr> 
          <td class="home-table-leftline">
		  <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-tool-content">
			<input name="button" type="button" class="home-inputBtn"  value="保存" onclick="onSave()"  <c:if test="${('savesubmit' eq param.method)|| ('2' eq param.type)}">disabled</c:if>/>
			 <input type="button" class="home-inputBtn"  onclick="doSubmit()" value="保存并提交"
			 <logic:messagesNotPresent>
			 <c:if test="${('savesubmit' eq param.method)|| ('2' eq param.type)}">disabled</c:if>
			 </logic:messagesNotPresent>
			 /> 
             <input name="reset" type="reset" class="home-inputBtn"  value="重写"  <c:if test="${('savesubmit' eq param.method)|| ('2' eq param.type)}">disabled</c:if> /> 
			

		</td>
              </tr>
              <tr>
                <td align="center" valign="top">&nbsp;</td>
              </tr>
              <tr> 
                <td valign="top" class="home-edittable-space"> 
				<table width="100%" border="0" cellspacing="0" cellpadding="0">
					<tr> 
                      				<td>
						<table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
						  <tr>
							<td width=20% class="home-subtable-view-tdstyle-right">进港航班号：</td>
							<td width=30% class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.flightNumIn}"/></td>
							<td width=20% class="home-subtable-view-tdstyle-right">始发航站：</td>
							<td width=30% class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.dan}"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">计划到达时间：</td>
							<td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.sta}" pattern="yyyy-MM-dd HH:mm"/></td>
							<td class="home-subtable-view-tdstyle-right">预计到达时间：</td>
							<td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.eta}" pattern="yyyy-MM-dd HH:mm"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">中转航站：</td>
							<td colspan=3 class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.aan}"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">出港航班号：</td>
							<td class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.flightNumOut}"/></td>
							<td class="home-subtable-view-tdstyle-right">目的航站：</td>
							<td class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.laan}"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">计划出港时间：</td>
							<td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.std}" pattern="yyyy-MM-dd HH:mm"/></td>
							<td class="home-subtable-view-tdstyle-right">预计出港时间：</td>
							<td class="home-subtable-view-tdstyle-left"><fmt:formatDate value="${flightTransferWait.etd}" pattern="yyyy-MM-dd HH:mm"/></td>
						  </tr>
							   <tr>
							<td class="home-subtable-view-tdstyle-right">中转总人数：</td>
							<td class="home-subtable-view-tdstyle-left"><a href="passengerInfo.html?ftiId=<c:out value='${flightTransferWait.ftiId}'/>&flag=transfer">&nbsp;<c:out value="${flightTransferWait.personSumCount}"/></a></td>
							<td class="home-subtable-view-tdstyle-right">中转行李总数：</td>
							<td class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.luggageSumCount}"/></td>
						  </tr>
						  <tr>
						    <td class="home-subtable-view-tdstyle-right">中转行李总重量：</td>
							<td  class="home-subtable-view-tdstyle-left"><c:out value="${flightTransferWait.luggageSumWeight}"/></td>
							<td class="home-subtable-view-tdstyle-right">中转时间间隔：</td>
							<td  class="home-subtable-view-tdstyle-left"><c:out value="${useTime}"/></td>
						  </tr>
						  <tr>
							<td class="home-subtable-view-tdstyle-right">是否衔接正常：</td>
							<td colspan=3 class="home-subtable-view-tdstyle-left"><select name="joinFlag" class="home-table-inputbox" onChange="if(this.value=='0'){ waittransfer.style.display='';}else{waittransfer.style.display='none';}">
							  <option value=1  <c:if test="${flightTransferInstruction.joinFlag == 1}">selected</c:if>>是</option>
							  <option value=0  <c:if test="${flightTransferInstruction.joinFlag == 0}">selected</c:if>>否</option>
							</select>                    
							</td>
						  </tr>
						  <tr id=waittransfer style="display:none">
							<td class="home-subtable-view-tdstyle-right">是否等待中转旅客:</td>
							<td colspan=3 class="home-subtable-view-tdstyle-left">     
							<select class="home-table-inputbox" name="needWait" id="needWait">
									<option value=1 <c:if test="${flightTransferInstruction.needWait == 1}">selected</c:if>>是</option>
									<option value=0 <c:if test="${flightTransferInstruction.needWait == 0}">selected</c:if>>否</option>
							</select>                
							</td>
						  </tr>
                        			</table>
					  </td>
					</tr>
                    <tr>  
                      <td>
                    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	                    	<tr>
		                      <td class="home-table-tool-content">保障指示</td>
	    	                   <td class="home-table-tool-content" style="text-align:right;"><img src="images/menu_ico_up.gif"  onClick="changeDiv('protect',this);" style="cursor:hand"/></td>
	  						</tr>
  						</table>
  						</td>  	 
                    </tr>
                    <tr id="protect"> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
							<tr>
								<td class="home-subtable-view-tdstyle-right" nowrap="nowrap">是否需提供餐食：</td>
								<td class="home-subtable-view-tdstyle-left">
									<select class="home-table-inputbox" name="needFood" id="needFood" onchange="javascript:ifShow('food',this.value)">
									<option value=1 <c:if test="${flightTransferInstruction.needFood == 1}">selected</c:if>>是</option>
									<option value=0 <c:if test="${flightTransferInstruction.needFood == 0}">selected</c:if>>否</option>
									</select>                    
								</td>
								<td class="home-subtable-view-tdstyle-right">是否需安排住宿：</td>
								<td class="home-subtable-view-tdstyle-left">
									<select class="home-table-inputbox" name="needHotel" id="needHotel" onchange="javascript:ifShow('hotel',this.value)">
									<option value=1 <c:if test="${flightTransferInstruction.needHotel == 1}">selected</c:if>>是</option>
									<option value=0 <c:if test="${flightTransferInstruction.needHotel == 0}">selected</c:if>>否</option>
									</select>                    
								</td>
								<td class="home-subtable-view-tdstyle-right">是否需要摆渡车:</td>
								<td class="home-subtable-view-tdstyle-left">
									<select class="home-table-inputbox" name="needCar" id="needCar">
									<option value=1 <c:if test="${flightTransferInstruction.needCar == 1}">selected</c:if>>是</option>
									<option value=0 <c:if test="${flightTransferInstruction.needCar == 0}">selected</c:if>>否</option>
									</select>                    
								</td>
							</tr>
							<tr> 
								<td width="10%" class="home-subtable-view-tdstyle-right"><font color="red">*</font>保障指示：</td>
								<td colspan=5 class="home-subtable-view-tdstyle-left"><html:textarea  property="instruction" styleClass="home-table-inputbox" cols="81" rows="2"><c:out value="${flightTransferInstruction.instruction}"/></html:textarea>
								</td>
							</tr>
                        </table></td>
                    </tr>
                   
                    <tr id="foodSeparateTrId" style="display: "> 
                      <td>&nbsp;</td>
                    </tr>
                    <tr id="foodTitleTrId" style="display: "> 
                      <td class="home-table-tool-content">餐食安排指示</td>
                    </tr>

					<tr id="foodListTrId" style="display: "> 
						<td valign="top" class="home-tab-line"> 
						<table width="100%" border="0" cellspacing="0" cellpadding="4">
						<tr> 
						  <td> 
							<input name="Submit2" type="button" class="home-inputBtn" value="新增" onclick="MM_openBrWindow('./flightTransferFood.html?method=edit&flightTransferInfoId=<c:out value='${param.flightTransferInfoId}'/>',null,'top=200,height=200,width=400,status=no,toolbar=no,menubar=no,location=no scrollbars=yes')"  <c:if test="${('savesubmit' eq param.method)|| ('2' eq param.type)}">disabled</c:if> /> 
							<input name="Submit2" type="button" class="home-inputBtn" value="删除" onclick="deleteTransferFood()"  <c:if test="${('savesubmit' eq param.method)|| ('2' eq param.type)}">disabled</c:if> /> 
						  </td> 
						</tr>
						<tr> 
						<td class="home-tab-list-bg"> 
						<aa:zone name="transferFoodZone">
						<table width="100%" border="0" cellspacing="1" cellpadding="2" class="home-subtable-bgcolor">
								<tr> 
									<td width="5%"  class="home-table-tool-conten"><input type="checkbox" name="checkbox" value="checkbox" onclick="chooseAll(this)" /></td>
									<td width="30%" class="home-table-tool-conten">餐食名称</td>
									<td width="15%" class="home-table-tool-conten">份数</td>
									<td width="20%" class="home-table-tool-conten">单价</td>
									<td width="20%" class="home-table-tool-conten">合计</td>
									<td width="30%" class="home-table-tool-conten">编辑</td>
								</tr>
									<c:forEach var="results" items="${TRANSFER_FOOD_LIST}" varStatus="status">
								<tr> 
									<td class="home-tab-content"><input type="checkbox" name="selected_id" value="<c:out value='${results.id}'/>" /></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.foodName}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.amount}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.price}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.total}"/>元</td>
									<td class="home-tab-content"><img src="images/update.gif" 
									<logic:messagesNotPresent>
			                        <c:if test="${('savesubmit' ne param.method)&& ('2' ne param.type)}">
									onclick="MM_openBrWindow('./flightTransferFood.html?method=edit&id=<c:out value="${results.id}"/>&flightTransferInfoId=<c:out value='${param.flightTransferInfoId}'/>',null,'top=200,height=200,width=400,status=no,toolbar=no,menubar=no,location=no scrollbars=yes');" 
										  </c:if>	
		                         </logic:messagesNotPresent>
									style="cursor:hand" width="12" height="14" border=0 /></td>
								</tr>
								</c:forEach> 
                                <tr height=25> 
									<td class="home-tab-content"><b>&nbsp;</b></td>
									<td class="home-tab-content"><b>总计：</b></td>
									<td class="home-tab-content"><b><c:out value="${totalAmount}"/></b></td>
									<td class="home-tab-content">&nbsp;</td>
									<td class="home-tab-content"><b><c:out value="${totalMoney}"/>元</b></td>
									<td class="home-tab-content"><b>&nbsp;</b></td>
								</tr>
							</table>
							</aa:zone>
						</td>
						</tr>
						</table>
						</td>
					</tr>
                    <tr id="foodFormTrId" style="display: "> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                          <tr> 
                            <td width=20% class="home-subtable-view-tdstyle-right">交接地点：</td>
                            <td width=30% class="home-subtable-view-tdstyle-left"><html:text property="foodAddress"  styleClass="home-table-inputbox" size="20"/></td>
                            <td width=20% class="home-subtable-view-tdstyle-right">期望交接餐食时间：</td>
                            <td width=30% class="home-subtable-view-tdstyle-left"><html:text property="foodTime" styleClass="home-table-inputbox" size="20"/>&nbsp;<img src="images/date.gif" border="0" onclick="fPopCalendar(foodTime,foodTime);return false"></td>
                          </tr>
                        </table></td>
                    </tr>

                    <tr id="hotelSeparateTrId" style="display: "> 
                      <td>&nbsp;</td>
                    </tr>
                    <tr id="hotelTitleTrId" style="display: "> 
                      <td class="home-table-tool-content">住宿安排指示</td>
                    </tr>
					<tr id="hotelListTrId" style="display: "> 
						<td valign="top" class="home-tab-line"> 
						<table width="100%" border="0" cellspacing="0" cellpadding="4">
						<tr> 
						  <td> 
							<input name="Submit2" type="button" class="home-inputBtn" value="新增" onclick="MM_openBrWindow('./flightTransferHotel.html?method=edit&step=1&flightTransferInfoId=<c:out value='${param.flightTransferInfoId}'/>',null,'top=200,height=200,width=400,status=no,toolbar=no,menubar=no,location=no scrollbars=yes')"  <c:if test="${('savesubmit' eq param.method)|| ('2' eq param.type)}">disabled</c:if> /> 
							<input name="Submit2" type="button" class="home-inputBtn" value="删除" onclick="deleteTransferHotel()"  <c:if test="${('savesubmit' eq param.method)|| ('2' eq param.type)}">disabled</c:if> /> 
						  </td>
						</tr>
						<tr> 
						<td class="home-tab-list-bg"> 
						<aa:zone name="transferHotelZone">
						<table width="100%" border="0" cellspacing="1" cellpadding="2" class="home-subtable-bgcolor">
								<tr> 
									<td width="5%"  class="home-table-tool-conten"><input type="checkbox" name="checkbox1" value="checkbox" onclick="chooseElse(this)" /></td>
									<td width="30%" class="home-table-tool-conten">酒店名称</td>
									<td width="25%" class="home-table-tool-conten">联系电话</td>
									<td width="20%" class="home-table-tool-conten">地址</td>
									<td width="15%" class="home-table-tool-conten">单价</td>
								    <td width="20%" class="home-table-tool-conten">编辑</td>
								</tr>
								 <c:forEach var="results" items="${TRANSFER_HOTEL_LIST}" varStatus="status">
								<tr> 
									<td class="home-tab-content"><input type="checkbox" name="selected_id_1" value="<c:out value='${results.id}'/>" /></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.name}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.phone}"/></td>
									<td class="home-tab-content">&nbsp;<c:out value="${results.address}"/></td>
										<td class="home-tab-content">&nbsp;<c:out value="${results.price}"/>&nbsp;元</td>
									<td class="home-tab-content"><img src="images/update.gif" width="12" 
									<logic:messagesNotPresent>
			                        <c:if test="${('savesubmit' ne param.method)&& ('2' ne param.type)}">
									onclick="MM_openBrWindow('./flightTransferHotel.html?step=1&method=edit&id=<c:out value="${results.id}"/>&flightTransferInfoId=<c:out value='${param.flightTransferInfoId}'/>',null,'top=200,height=200,width=400,status=no,toolbar=no,menubar=no,location=no scrollbars=yes');"
									</c:if>	
		                         </logic:messagesNotPresent>
									 style="cursor:hand" height="14" border=0 /></td>
								</tr>
								</c:forEach>
							</table>
							</aa:zone>
						</td>
						</tr>
						</table>
						</td>
					</tr>
                  <!--  <tr> 
                      <td><table width="100%" border="0" cellpadding="4" cellspacing="1" class="home-subtable-bgcolor">
                          <tr> 
                            <td width=10% class="home-subtable-view-tdstyle-right">备注：</td>
                            <td colspan="5" class="home-subtable-view-tdstyle-left"><textarea name="textarea2" class="home-table-inputbox" cols="81" rows="2"></textarea></td>
                          </tr>
                        </table>
						</td>
                    </tr> --> 
                  </table> 
                </td>
              </tr>
            </table>
		  </td>
        </tr>
        <tr> 
          <td height="12">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td class="home-table-bottom-left">&nbsp;</td>
                <td class="home-table-bottom-bg">&nbsp;</td>
                <td class="home-table-bottom-right">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
	  
	  </td>
  </tr>
  <tr>
    <td height="10">&nbsp;</td>
  </tr>
</table>
</html:form>
</body>
<script type="text/javascript">
//initial page when open this jsp
initializePage();


function deleteTransferHotel(){
  var elements=document.getElementsByName("selected_id_1");
  var selected=new Array();
  for(var i=0;i<elements.length;i++){
     var e=elements[i];
     if(e.checked){
        var bb=e.value;
        selected.push(bb);
      }
    
  }
  if(0!=selected.length){
  if(confirm("确实要删除?")){
  FlightTransferHotelRemote.deleteTransferHotel(selected,deleteHotelCallBack);
   }else return;
    }else{
			alert("<fmt:message key="common.delete.message"/>");
		}	 
}
function deleteHotelCallBack(bln){
   if(bln){
       
       ajaxAnywhere.getZonesToReload = function() {
    return "transferHotelZone";
	}
	ajaxAnywhere.getAJAX('./transfer.html?method=showTips&flightTransferInfoId=<c:out value="${param.flightTransferInfoId}"/>','transferHotelZone')
   }
}


function deleteTransferFood(){
  var elements=document.getElementsByName("selected_id");
  var selected=new Array();
  for(var i=0;i<elements.length;i++){
     var e=elements[i];
     if(e.checked){
        var bb=e.value;
        selected.push(bb);
      }
    
  }
  if(0!=selected.length){
  if(confirm("确实要删除?")){
  FlightTransferFoodRemote.deleteTransferFood(selected,deleteFoodCallBack);
   }else return;
   }else{
			alert("<fmt:message key="common.delete.message"/>");
		}	 
}
function deleteFoodCallBack(bln){
   if(bln){
       ajaxAnywhere.getZonesToReload = function() {
    return "transferFoodZone";
	}
	ajaxAnywhere.getAJAX('./transfer.html?method=showTips&flightTransferInfoId=<c:out value="${param.flightTransferInfoId}"/>','transferFoodZone')
   }
}

//if show the list
function ifShow(param,bl){
  elementId_s=param+"SeparateTrId";
  elementId_t=param+"TitleTrId";
  elementId_l=param+"ListTrId";
  elementId_f=param+"FormTrId";
  var element_s=document.getElementById(elementId_s);
  var element_t=document.getElementById(elementId_t);
  var element_l=document.getElementById(elementId_l);
  var element_f=document.getElementById(elementId_f);
  if(bl=='1'){
    if(element_s!=null)
      element_s.style.display="";
	if(element_t!=null)
	  element_t.style.display="";
	if(element_l!=null)
	  element_l.style.display="";
	if(element_f!=null)
	  element_f.style.display="";
  
  }else{
     if(element_s!=null)
      element_s.style.display="none";
	if(element_t!=null)
	  element_t.style.display="none";
	if(element_l!=null)
	  element_l.style.display="none";
	if(element_f!=null)
	  element_f.style.display="none";
  }
}

//initialize page when open this page
function initializePage(){
  var needFood=document.getElementById("needFood");
  var needHotel=document.getElementById("needHotel");
  var joinFlag=document.getElementById("joinFlag");
  
  var needFoodVal=needFood.value;
  var needHotelVal=needHotel.value;
  var joinFlagVal=joinFlag.value;
  if(needFoodVal=='0')
    ifShow('food','0');
  if(needHotelVal=='0')
    ifShow('hotel','0');
    
  if(joinFlagVal=='0'){
    var waittransfer=document.getElementById("waittransfer");
    if(waittransfer!=null)
       waittransfer.style.display="";
  }
   
  
}

</script>
<script>
//保存信息处理 add by kellen
if("1"=='<c:out value="${flag}"/>'){
    var messageShowTrIdTd=document.getElementById("messageShowTrId");
	messageShowTrIdTd.style.display="";
	//window.location=window.location;  
}else if("-1"=='<c:out value="${flag}"/>'){
	alert("保存信息失败!");
	 
}else if("2" ==  '<c:out value="${flag}"/>'){
	//window.location=window.location;  
}


</script>
</html>

